import request from '@/utils/request/request';

// 获取系统期段维护
export function page(params: object) {
  return request.get(`/api/procurement/infra/system-period-maintenance/page`, {
    params,
  });
}
// 批量添加系统期段维护
export function addBatch(data: any) {
  return request.post(
    '/api/procurement/infra/system-period-maintenance/saveByBatch',
    data
  );
}

// 添加系统期段维护
export function addOne(data: any) {
  return request.post('/api/procurement/infra/system-period-maintenance', data);
}

// 添加系统期段维护
export function editOne(data: any) {
  return request.put('/api/procurement/infra/system-period-maintenance', data);
}

// 添加系统期段维护
export function deleteBatch(data: any) {
  return request.delete('/api/procurement/infra/system-period-maintenance', {
    data,
  });
}
